﻿using System.ComponentModel;

namespace NewRetail.Application.Components.Dashboard.Model
{
    /// <summary>
    /// 基础信息概况
    /// </summary>
    public class BaseInfoSummaryDto
    {
        /// <summary>
        /// 门店数量
        /// </summary>
        public int storeCount { get; set; } = 0;
        /// <summary>
        /// 总会员数
        /// </summary>
        public int memberCount { get; set; } = 0;
        /// <summary>
        /// 本月销售量(deprecate)
        /// </summary>
        public decimal monthSaleCount { get; set; } = 0;
        /// <summary>
        /// 本月采购额
        /// </summary>
        public decimal monthPurchaseAmount { get; set; } = 0;
        /// <summary>
        /// 本月销售额
        /// </summary>
        public decimal monthSaleAmount { get; set; } = 0;
        /// <summary>
        /// 年度总销量(deprecate)
        /// </summary>
        public decimal yearSaleCount { get; set; } = 0;
        /// <summary>
        /// 年度采购金额
        /// </summary>
        public decimal yearPurchaseAmount { get; set; } = 0;
        /// <summary>
        /// 年度总销额
        /// </summary>
        public decimal yearSaleAmount { get; set; } = 0;
    }
    /// <summary>
    /// 今日销售数据
    /// </summary>
    public class TodaySaleDto
    {
        /// <summary>
        /// 今日销售量
        /// </summary>
        public decimal todaySaleCount { get; set; } = 0;
        /// <summary>
        /// 今日销售额
        /// </summary>
        public decimal todaySaleAmount { get; set; } = 0;
    }
    /// <summary>
    /// 近7日销售
    /// </summary>
    public class LastSevenDaySaleDto
    {
        /// <summary>
        /// x轴日期
        /// </summary>
        public string[] xData { get; set; }
        /// <summary>
        /// 销售量
        /// </summary>
        public decimal[] saleCountData { get; set; }
        /// <summary>
        /// 销售额
        /// </summary>
        public decimal[] saleAmountData { get; set; }
    }
    /// <summary>
    /// 本年度销售
    /// </summary>
    public class YearSaleDto
    {
        /// <summary>
        /// 销售量
        /// </summary>
        public decimal[] saleCountData { get; set; }
        /// <summary>
        /// 销售额
        /// </summary>
        public decimal[] saleAmountData { get; set; }
    }
    /// <summary>
    /// 今日各门店销售
    /// </summary>
    public class TodayStoreSaleDto
    {
        /// <summary>
        /// x轴日期
        /// </summary>
        public string[] xData { get; set; }
        /// <summary>
        /// 销售量
        /// </summary>
        public decimal[] saleCountData { get; set; }
        /// <summary>
        /// 销售额
        /// </summary>
        public decimal[] saleAmountData { get; set; }
    }
    /// <summary>
    /// 支付方式数据
    /// </summary>
    public class PaymentMethodSaleDto
    {
        /// <summary>
        /// 支付方式A-现金 Z-支付宝 W-微信 Y-银联  D-会员卡  X-自动抹零  X2-第三方支付 AD-找零
        /// </summary>
        public string payWay { get; set; }
        /// <summary>
        /// 支付方式名称
        /// </summary>
        public string payWayName { get; set; }
        /// <summary>
        /// 销售订单数
        /// </summary>
        public int saleCount { get; set; }
    }
    /// <summary>
    /// 支付方式枚举
    /// </summary>
    public enum PayWayEnum
    {
        [Description("现金")]
        A = 0,
        [Description("支付宝")]
        Z = 1,
        [Description("微信")]
        W = 2,
        [Description("银联")]
        Y = 3,
        [Description("会员卡")]
        D = 4,
        [Description("第三方支付")]
        X2 = 5,
        [Description("其他")]
        Other = 6,
        [Description("超市卡")]
        C = 7
    }

    /// <summary>
    /// 购买渠道数据
    /// </summary>
    public class BuyChannelSaleDto
    {
        /// <summary>
        /// 购买渠道TaoBao-淘宝 Jd-京东 OffLine-实体店  Other-其他
        /// </summary>
        public string buyChannel { get; set; }
        /// <summary>
        /// 购买渠道名称
        /// </summary>
        public string buyChannelName { get; set; }
        /// <summary>
        /// 销售订单数
        /// </summary>
        public int saleCount { get; set; }
    }
    /// <summary>
    /// 购买渠道枚举
    /// </summary>
    public enum BuyChannelEnum
    {
        [Description("淘宝")]
        TaoBao = 0,
        [Description("京东")]
        Jd = 1,
        [Description("实体店")]
        OffLine = 2,
        [Description("其他")]
        Other = 3
    }
}
